﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using SIA.HwAccess;
using SIA.Configurators;

namespace SIA.AutomationControl
{
    public partial class DictionaryProperyEdit : UserControl
    {
        IDictionaryProperty _dProperty;
       
        [CategoryAttribute("SIA.AutomationControl"), DefaultValue(null)]
        public IDictionaryProperty DictionaryProperty
        {
            get { return _dProperty; }
            set
            {
                if (_dProperty != value)
                {
                    _dProperty = value;
                    lbKey.Text = _dProperty.PropertyKey;
                    tbValue.Text = _dProperty.PropertyValue;
                }
            }
        }
        


        public DictionaryProperyEdit()
        {
            InitializeComponent();
        }

    
    }
}
